#include <QtCore/QCoreApplication>
#include <QVector>
#include "serverconmanager.h"
#include "../common/comcommandformat.h"
#include "../common/comiocontroller.h"
#include "../common/comcommandparser.h"
#include "socketcommand/servercommandsendcodec.h"
void initCommandInfo(QVector<ComCommandFormat>* cCommandInfo)
{
    cCommandInfo->push_back( {"SendCodec", 2, 2, &ServerCommandSendCodec::staticMetaObject} );
}

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);


    //init command info
    QVector<ComCommandFormat> cCommandInfo;
    initCommandInfo(&cCommandInfo);
    ComCommandParser::m_scCommandInfo = &cCommandInfo;


    //start listening
    ServerConManager::getInstance()->startListening(907);
    return a.exec();
}
